package com.sun.service.impl;

import com.sun.entity.Category;
import com.sun.mapper.CategoryMapper;
import com.sun.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author SunRui
 * @description TODO
 * @date 2024/8/10 22:26
 */
@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;
    @Override
    public List<Category> getList() {
        return categoryMapper.getList();
    }

    @Override
    public Object getName(int id) {
        return categoryMapper.getName(id);
    }
}
